
<?php
    
    require "policy.php";
    
    $urls = array();
    $urls[0]= "http://www.learningtree.com/training-directory/Java-Training-5.htm";
    $urls[1]="http://www.webucator.com/java/index.cfm";
    $urls[2]="http://www.webucator.com/mobile-training/index.cfm";
    $urls[3]="http://www.webucator.com/networking/index.cfm";
    $urls[4]="http://www.webucator.com/programming/android-training.cfm";
    
    $courseSelected = "java";
    
    foreach ( $urls as $value){
        
        echo (validate($value,$courseSelected)) ? "valid url :".$value."</br>" : "invalid url :".$value."</br>";
        
    }
    

	?>


